package com.example.job02redisha.controller;

import com.example.job02redisha.entity.User;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
@EnableAutoConfiguration
public class UserController {


    @RequestMapping("/user/find")
    User find(Integer id) {
        return new User(1, "KK", 28);
    }

    @RequestMapping("/user/list")
    List<User> list() {
        return Arrays.asList(new User(1, "KK", 28),
                new User(2, "CC", 18));
    }

    public static void main(String[] args) {
        for (int i=12280;i<16381;i++) {
            System.out.print(i + " ");
        }
    }

}